import static com.github.llyb120.workflow.definition.All.*

workflow {
    id "flow2"

    startnode "发起", {
        dealer {
            byRoleName "管理员"
        }
        to "并发1"
        to "并发2"
        maximumParallelNum 2
    }

    node "并发1", {
        dealer {
            byRoleName "管理员"
        }
        //强制并发两个人
        to "合并"
    }

    node "并发2", {
        dealer {
            byRoleName "操作员"
        }
        to "合并"
    }

    node "合并", {
        dealer {
            byRoleName "管理员"
        }
        to "结束"
        waitForMerge(true)
    }

    endnode "结束", {}

}